home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / SmallEiffel 0.3.3 / SmallEiffel 68k / lib_test / test_platform2.e < prev    next >
Encoding:
Text File  |  1996-06-13  |  770 b   |  38 lines  |  [TEXT/EDIT]

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. class TEST_PLATFORM2
  5.  
  6. inherit PLATFORM;
  7.  
  8. creation make
  9.    
  10. feature 
  11.    
  12.    make is
  13.       do
  14.      is_true(Character_bits >= 8);
  15.      is_true(Boolean_bits >= 16);
  16.      is_true(Integer_bits >= 16);
  17.      is_true(Real_bits >= 32);
  18.      is_true(Double_bits >= Real_bits);
  19.      is_true(Pointer_bits >= 24);
  20.      is_true(Maximum_integer >= 32768);
  21.       end;
  22.    
  23.    is_true(b: BOOLEAN) is
  24.       do
  25.      cpt := cpt + 1;
  26.      if not b then
  27.         std_output.put_string("TEST_PLATFORM2: ERROR Test # ");
  28.         std_output.put_integer(cpt);
  29.         std_output.put_string("%N");
  30.      else
  31.         -- std_output.put_string("Yes%N");
  32.      end;
  33.       end;
  34.    
  35.    cpt: INTEGER;
  36.    
  37. end -- TEST_PLATFORM2
  38.